Page({

  /**
   * 页面的初始数据
   */
  data: {
    data: null, //页面信息
    serviceOrderCode: '', //服务单号
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    const currency = JSON.parse(options.currency) || null
    this.setData({
      data: currency,
      serviceOrderCode: currency.serviceOrderCode
    })
  },

  /**
   * 详情
   */
  goServiceDetatil: function () {
    wx.redirectTo({
      url: '/pages/giftShop/serviceOrder/serviceDetails/index?serviceOrderCode=' + this.data.serviceOrderCode
    })
  },

  /**
   * 售后主页
   */
  // goServiceHome: function () {
    // wx.reLaunch({
    //   url: '/pages/giftShop/serviceOrder/serviceList/index'
    // })
  // }
})